<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<meta name="format-detection" content="telephone=no">
		<meta name="format-detection" content="email=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="full-screen" content="yes">
		<meta name="browsermode" content="application">
		<meta name="x5-orientation" content="landscape">
		<meta name="x5-fullscreen" content="true">
		<meta name="x5-page-mode" content="app">
		<link rel="shortcut icon" href="images/index.jpg" type="image/x-icon">
		<title>小霸王怀旧游戏机</title>

		<link href="css/jsnes.css" rel="stylesheet" type="text/css">
		<style>
			.function button,
			.action button {
				color: #000;
			}

			.function button {
				height: 32px;
				width: auto;
			}

			.nes-roms>select {
				width: 100%;
				height: 30px;
			}
			
			.nes-controls{
				text-align: start;
			}

			.game-window {
				width: 100%;
				height: 100%;
			}
		</style>
		<script>
			// 百度统计代码
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "https://hm.baidu.com/hm.js?cd9997eb61d78548882d3621f424cb0e";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();
		</script>
	</head>
	<body>
		<!-- 启动声音，需要请取消注释 -->
		<!--<embed src="bgm.mp3" hidden="true" autostart="true" loop="true" />-->

		<div class="main">
			<div class="panel">
				<div class="controller-area">
					<div class="controller">
						<div id="controls-direction">
							<button role="BUTTON_UP" class="up joydirection" id="joystick_btn_up">上</button>
							<button role="BUTTON_RIGHT" class="right joydirection" id="joystick_btn_right">右</button>
							<button role="BUTTON_DOWN" class="down joydirection" id="joystick_btn_down">下</button>
							<button role="BUTTON_LEFT" class="left joydirection" id="joystick_btn_left">左</button>
						</div>
					</div>
					<!-- <div class="joy">X</div> -->
				</div>
				
				<div class="function-area">
					<div class="screen">
						<div class="game-window" id="emulator" align="center"></div>
					</div>
					<div class="function">
						<button class="controls-center-select joybtn" id="joystick_btn_select" role="BUTTON_SELECT">Select</button>
						<button class="controls-center-start joybtn" id="joystick_btn_start" role="BUTTON_START">Pause</button>
					</div>
				</div>
				
				<div class="action-area">
					<div class="action">
						<div id="controls-fire">
							<button class="a joybtn" role="BUTTON_A" id="joystick_btn_A">A</button>
							<button class="b joybtn" role="BUTTON_B" id="joystick_btn_B">B</button>
						</div>
					</div>
				</div>
				<!-- <div class="sign">FAMILY <br> COMPUTER</div> -->
			</div>
			<div>
				<a href="shuoming.html" target="_blank" class="readme">帮助</a>
			</div>
		</div>
	</body>
	<script src="js/jquery-1.4.2.min.js" tppabs="jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/dynamicaudio-min.js" tppabs="dynamicaudio-min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/nes.js" tppabs="nes.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/utils.js" tppabs="sutils.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/cpu.js" tppabs="cpu.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/keyboard.js" tppabs="keyboard.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/mappers.js" tppabs="mappers.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/papu.js" tppabs="papu.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/ppu.js" tppabs="ppu.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/rom.js" tppabs="rom.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/ui.js" tppabs="ui.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/debug.js" tppabs="debug.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
		var nes;
		$(function() {
			nes = new JSNES({
				'ui': $('#emulator').JSNESUI({
					"经典": [
						['魂斗罗', 'roms/Contra1(U)30.nes'],
						['超级玛丽', 'roms/(W) Super Mario Bros. [!].nes'],
						['坦克', 'roms/(Ch) Missile Tank.nes'],
						['双截龙', 'roms/Double Dragon1.nes'],
						['冒险岛', 'roms/maoxiandao.nes'],
						['中国象棋', 'roms/Zhong Guo Xiang Qi.nes'],
						['雪人兄弟', 'roms/xueren.nes'],
						['越野摩托', 'roms/Motor.nes'],
						['赤影战士', 'roms/Kage.nes'],
						['炸弹人', 'roms/zhadan.nes'],
						['马戏团', 'roms/ma.nes'],
						['沙罗曼蛇', 'roms/Life Force [!].nes'],
						['脱狱', 'roms/Cross Fire (J).nes'],
						['功夫', 'roms/(J) (V1.2) Yie Ar Kung-Fu [!].nes'],
						['双截龙2', 'roms/Double Dragon2.nes'],
						['三目童子', 'roms/3.nes'],
						['恶魔城1', 'roms/emc.nes'],
						['洛克人1', 'roms/lkr.nes'],
						['人间兵器', 'roms/rjbq.nes'],
						['忍者神龟1', 'roms/sg1.nes'],
						['激龟快打', 'roms/sg1.nes'],
						['泡泡龙2', 'roms/ppl2.nes'],
						['西游记1', 'roms/xyj1.nes'],
						['沙罗曼蛇', 'roms/Lifeforce (U).nes'],
						['淘金者', 'roms/Championship Lode Runner (J).nes'],
						['冒险岛3', 'roms/maoxiandao3.nes'],
						['俄罗斯方块', 'roms/elsfk.nes'],
						['黑客', 'roms/hk.nes'],
						['汤姆历险记', 'roms/tmlxj.nes'],
						['绿野仙踪', 'roms/nyxz.nes'],
						['公路赛车', 'roms/glsc.nes'],
						['屠龙记4', 'roms/tlj4.nes'],
						['圣灵传说', 'roms/slcs.nes'],
						['魔法总动员', 'roms/mfzdy.nes'],
						['口袋妖怪', 'roms/kdyg.nes'],
						['武士魂', 'roms/wsh.nes'],
						['阿拉丁', 'roms/ald.nes'],
						['蝙蝠侠', 'roms/bfx.nes'],
						['时空小子', 'roms/skxz.nes'],
						['铁血战士', 'roms/txzs.nes'],
						['汤姆和杰瑞和塔菲', 'roms/tangmu.nes'],
						['总决战', 'roms/zjz.nes'],
						['赤影战士', 'roms/cyzs.nes'],
						['最游记之唐三藏', 'roms/zyj.nes'],
						['围棋大战', 'roms/wqdzz.nes'],
						['四川麻将-制服篇', 'roms/scmj.nes'],
						['吃豆小精灵', 'roms/cdxjl.nes'],
						['异形之太空探险者', 'roms/yx.nes'],
						['武林外传', 'roms/wlwz.nes'],
						['东方传说', 'roms/dfcs.nes'],
						['杀戮战场', 'roms/slzc.nes'],
						['救火英雄', 'roms/jhyx.nes'],
					],
					"经典2": [
						['快乐猫', 'roms/klm.nes'],
						['机器猫', 'roms/jqm.nes'],
						['f1赛车', 'roms/f1sc.nes'],
						['米老鼠大冒险', 'roms/mlsdmx.nes'],
						['成龙之龙', 'roms/clzl.nes'],
						['挖地雷', 'roms/wdl.nes'],
						['弹珠台', 'roms/dzt.nes'],
						['魔道士阴谋', 'roms/mdsym.nes'],
						['古墓丽影', 'roms/gmly.nes'],
						['炸弹人', 'roms/zdr.nes'],
						['冒险岛4', 'roms/mxd4.nes'],
						['4人麻将', 'roms/4rmj.nes'],
						['合金风暴', 'roms/hjfb.nes'],
						['红楼梦', 'roms/hlm.nes'],
						['坦克风云', 'roms/tkfy.nes'],
						['幽灵列车', 'roms/yllc.nes'],
						['银河时代', 'roms/yhsd.nes'],
						['网球', 'roms/wq.nes'],
						['神探柯蓝', 'roms/stkl.nes'],
						['梦幻', 'roms/mh.nes'],
						['梦企鹅物语', 'roms/mqewy.nes'],
						['欧陆之战', 'roms/elzz.nes'],
					],
					"经典3": [
						['碰碰车', 'roms/ppc.nes'],
						['皮卡丘', 'roms/pkq.nes'],
						['外星战将', 'roms/wxzj.nes'],
					]
				})
			});
		});
	</script>
</html>
